package cn.cy.service.impl;

import cn.cy.dao.SysEmployeeDao;
import cn.cy.pojo.SysEmployee;
import cn.cy.service.SysEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("sysEmployeeService")
public class SysEmployeeServiceImpl implements SysEmployeeService {
    @Autowired
    private SysEmployeeDao sysEmployeeDao;

    @Override
    public SysEmployee Login(SysEmployee sysEmployee) {
        return sysEmployeeDao.findByNameAndPwd(sysEmployee);
    }

    public SysEmployeeDao getSysEmployeeDao() {
        return sysEmployeeDao;
    }

    public void setSysEmployeeDao(SysEmployeeDao sysEmployeeDao) {
        this.sysEmployeeDao = sysEmployeeDao;
    }
}
